Skip to main content

Get Token Price

Gets the token price of the asset_out in reference to the asset_in.

Request URL

https://testnet.api.euclidprotocol.com/api/v1/token/price

Curl

curl -X 'POST' \
'https://testnet.api.euclidprotocol.com/api/v1/token/price' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"asset_in": "fundenom",
"asset_out": "nibi"
}'

Parameters

FieldTypeDescription
asset_inStringThe identifier of the asset_in.
asset_outStringThe identifier of the asset_out.

Example Response

{
"amount":0.008118633378082513
}